package com.xiangmo.travel.mapper;
import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiangmo.travel.Entity.TeamRequest;
import com.xiangmo.travel.Entity.TeamUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
* @author a1304
* @description 针对表【team_request】的数据库操作Mapper
* @createDate 2023-03-23 09:21:17
* @Entity generator.Entity.TeamRequest
*/
@Repository
public interface TeamRequestMapper extends BaseMapper<TeamRequest> {
    //校验是否已经存在 不可再进行添加
    TeamRequest selectAllByTeamIdAndUserId(@Param("teamId") Long teamId, @Param("userId") Long userId);
    int deleteByTeamIdAndUserId(@Param("teamId") Long teamId, @Param("userId") Long userId);
}
